package core;

import javax.swing.JFrame;

/**
 *
 * @author Kuchcik
 */
public class User {
   private int ID;
   private Status AuthorizationID;
   private String login;
   private String FirstName;
   private String LastName;
   private String eMail;
   private boolean isActive;
   private JFrame parent;
   
   //konturkot reczny
   public User(int ID, Status AuthorizationID, String login, String FirstName, String LastName, String eMail, boolean isActive, JFrame parent){
       this.ID=ID;
       this.AuthorizationID=AuthorizationID;
       this.login=login;
       this.FirstName=FirstName;
       this.LastName=LastName;
       this.eMail=eMail;
       this.isActive=isActive;
       this.parent=parent;
   }
   //konstruktor kopiujacy
   public User(User user){
       this.ID=user.ID;
       this.AuthorizationID=user.AuthorizationID;
       this.login=user.login;
       this.FirstName=user.FirstName;
       this.LastName=user.LastName;
       this.eMail=user.eMail;
       this.isActive=user.isActive;
       this.parent=user.parent;      
   }
   
   public int getID(){
       return this.ID;
   }

   public int getAuthorizationID(){
       return this.AuthorizationID.status;
   }   

   public Status getAuthorizationStatus(){
       return this.AuthorizationID;
   }
   
   public String getLogin(){
       return this.login;
   }   

   public String getFirstName(){
       return this.FirstName;
   }  

   public String getLastName(){
       return this.LastName;
   }  

   public String getEMail(){
       return this.eMail;
   }  

   public boolean getIsActive(){
       return this.isActive;
   }
   
   public JFrame getJFrameParent(){
       return this.parent;
   }
}
